[. . . ] D@-@
CP1E CPU Unit Software
USER'S MANUAL
© OMRON, 2009
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. [. . . ] 13-3
CP1E CPU Unit Software User's Manual(W480)
13-1
13 PWM Outputs
13-1 PWM Outputs (Variable-duty-factor Pulse Outputs)
PWM outputs can be used only with the CP1E N/NA-type CPU Unit with transistor outputs. A PWM (Pulse Width Modulation) pulse can be output with a specified duty factor. The duty factor is the ratio of the pulse's ON time and OFF time in one pulse cycle. Use the PWM instruction to generate PWM pulses from a built-in output. The duty factor can be changed during pulse output.
Application example
· Controlling temperature on a time-proportional basis using the PWM output. · Controlling the brightness of lighting.
Built-in output PWM output 100% 15% Duty factor:15% Period is determined by frequency
50% Duty factor:50% 75% Duty factor:75%
Specifications
Item Duty factor Frequency Output mode Instruction Specification 0. 0% to 100. 0% in 0. 1% increments (Duty factor accuracy is +1%/-0% at 10 kHz, +5%/-0% at 10 to 32 kHz . ) 2. 0 Hz to 6, 553. 5 Hz (Set in 0. 1-Hz increments. )* 2 Hz to 32, 000 Hz (Set in 1-Hz increments. )* Continuous mode PWM
* The duty factor accuracy declines significantly at high frequencies because of limitations in the output circuit at high frequencies.
Additional Information For N30/40/60 or NA20 CPU Units, the output indicator of terminal 01 on terminal block CIO100 is always lit during PWM output.
13-2
CP1E CPU Unit Software User's Manual(W480)
13 PWM Outputs
13-1 PWM Outputs (Variable-duty-factor Pulse Outputs)
13-1-1 Flow of Operation
1
Setting pulse output port number, assigning pulse output terminals, and wiring.
Terminal 01 on terminal block CIO100 is used for PWM output 0.
2
Greate ladder Cyclic task, interrupt task. program
· The PWM instruction is used to control PWM outputs. · PWM outputs are stopped with the INI instruction.
Pulse Output Port Number and Pulse Output Terminals
The following terminals can be used for pulse outputs according to the pulse output method.
Output terminal block Terminal block label CIO 100 Terminal number 00 01 02 03 Specifications made with PWM instruction - PWM output 0 - - Other functions that cannot be used at the same time Pulse output method Normal output Pulse + direction Pulse output 0, pulse Pulse output 1, pulse Pulse output 0, direction Pulse output 1, direction Normal output 0 Normal output 1 Normal output 2 Normal output 3
13
13-1-1 Flow of Operation
13-1-2 Ladder Program Example Specifications and Operation
When the start input (CIO 0. 00) turns ON in this example, pulses with a duty factor of 40% at a frequency of 2, 000 Hz are output from PWM output 0. When the stop input (CIO 0. 01) turns ON, PWM output 0 is stopped.
Frequency: 2, 000 Hz, 500 s Start input (CIO 0. 00) Stop input (CIO 0. 01)
Duty factor: 40%, 200 s
Applicable Instructions
PWM INI
CP1E CPU Unit Software User's Manual(W480)
13-3
13 PWM Outputs
Preparations
PLC Setup
There are no settings that need to be made in the PLC Setup.
DM Area Settings
· PWM Operand Settings (D0 and D1)
Setting Frequency: 2, 000. 0 Hz Duty factor: 40. 0% Operand D0 D1 Data #4E20 #0190
Ladder Diagram
0. 00 Start input 0. 01 Stop input @INI #1000 #0003 D10 @PWM #1000 D0 D1 PWM output 0 (Duty factor in increments of 0. 1%, Frequency in increments of 0. 1 Hz) Frequency setting Duty factor setting PWM output 0 Stops pulse output Not used.
13-4
CP1E CPU Unit Software User's Manual(W480)
14
Serial Communications
This section describes communications with Programmable Terminals (PTs) without using communications programming, no-protocol communications with general components, and connections with a Modbus-RTU Easy Master, Serial PLC Link, and host computer.
14
14-1 Serial Communications . 14-2
14-1-1 14-1-2 14-2-1 14-2-2 14-2-3 14-3-1 14-3-2 14-3-3 14-3-4 14-4-1 14-4-2 14-4-3 14-4-4 14-5-1 14-5-2 14-5-3 14-5-4 14-5-5 14-6-1 14-6-2 14-6-3 Types of CPU Units and Serial Ports . 14-11 14-11 14-12 14-14 14-20 14-21 14-21 14-23 14-28
14-2 Program-free Communications with Programmable Terminals . 14-20
14-6 Connecting the Host Computer (Not Including Support Software) . 14-31
CP1E CPU Unit Software User's Manual(W480)
14-1
14 Serial Communications
14-1 Serial Communications
Serial communications can be used only with the CP1E N/NA-type CPU Unit.
14-1-1 Types of CPU Units and Serial Ports
N/NA-type CPU Unit
· N14/20 CPU Units have one built-in RS-232C port. · N30/40/60 or NA20 CPU Units have one built-in RS-232C port and one option slot. An RS-232C or RS-422A/485 Option Board can be mounted for serial communications.
E-type CPU Unit
There is no serial port.
Standard built-in RS-232C port Connected devices Connected devices
NS-series PT or NP-series PT
NS-series PT or NP-series PT
1:N NT Link 1:N NT Link
General component
N14/20 CPU Unit CP1E N/NA-type CPU Unit One Option Board for serial communications (CP1WNo-protocol communications CIF01 RS-232C Option Board, CP1W-CIF11 RS422A/485 Option Board, or CP1W-CIF12 RS422A/485 Option Board) can be mounted in the option slot. Standard built-in RS-232C port Modbus-RTU Easy Master communications No-protocol communications
General component
Inverter
Inverter
Modbus-RTU Easy Master communications
CP-series PLC or CJ1M PLC Serial PLC Links* CP1E N/NA-type CPU Unit Host computer (A Programming Device cannot be connected. ) N30/40/60 or NA20 CPU Unit Serial PLC Links*
CP-series PLC or CJ1M PLC
Host computer (A Programming Device cannot be connected. )
Host Link
Host Link
* Serial PLC Links cannot be used on two ports at the same time.
14-2
CP1E CPU Unit Software User's Manual(W480)
14 Serial Communications
14-1-2 Overview of Serial Communications
The CP1E CPU Units support the following types of serial communications.
Connected devices Programmable Terminal
NS/NP-series PT
Description Data can be exchanged with PTs without using a communications program in the CPU Unit. It is not possible to connect two PTs.
Communications protocol 1:N NT Links (Host Link is also supported. )
Built-in RS-232C OK
Optional serial port OK
14-1 Serial Communications
RS-232C NT Link CP1E
General component
CP1E
RS-232C or RS-422A/485
General device with serial communications
Communicates with general No-protocol devices, such as barcode communications readers, with an RS-232C or RS-422A/485 port without a command-response format. The TXD and RXD instructions are executed in the ladder program in the CPU Unit to transmit data from the transmission port or read data in the reception port. Data can be easily exchanged with general devices that support Modbus-RTU slave functionality (such as inverters) and are equipped with an RS232C port or RS-422A/485 port. Modbus-RTU Easy Master Function
OK
OK
14
14-1-2 Overview of Serial Communications
Modbus-RTU slave devices, such as inverters (Modbus-RTU Easy Master)
CP1E RS-422A/485 Option Board RS-232C or RS-422A/485
OK
OK
Inverter
Data links between CPU Units
CP1E CPU Unit Polling Unit RS-422A/485 Option Board RS-422A/485 Shared data
Data links can be created for up to nine CP-series or CJ1M CPU Units, including one Polling Unit and up to eight Polled Units. Up to 10 words can be shared per Unit. *1
Serial PLC Links
OK
OK
CP1E CPU Unit Polled Unit
CP1L CPU Unit Polled Unit
CP1E CPU Unit Software User's Manual(W480)
14-3
14 Serial Communications
Connected devices Host computers
Description PLC data can be read by the host computer or written to the PLC from the computer. The host computer sends a Host Link command (C Mode) or a FINS command to the CPU Unit to read/write I/O memory, change the operating mode, or to force-set/reset bits in the CPU Unit. *2
Communications protocol Host Link
Built-in RS-232C OK
Optional serial port OK
Computer (Not including the CX-Programmer and other Support Software. ) RS-232C Host Link
*1 A PT cannot be included in the Serial PLC Links. [. . . ] 12-33 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-47 Triangular control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-9 PWM instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-3 PWM outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [. . . ]